from numpy import array
def everyOther (v, offset=0):
    return [v[i] for i in range(offset, len(v), 2)]

def array2Int (input):
    length = len(input)
    newArray = array(length / 4)    
    for i in range(length / 4):
        newArray[i] = input[4 * i]
        newArray[i] *= 256
        newArray[i] += input[4 * i + 1]
        newArray[i] *= 256
        newArray[i] += input[4 * i + 2]
        newArray[i] *= 256
        newArray[i] += input[4 * i + 3]
    return newArray
